package edu.nf.aop.test;

import edu.nf.aop.annotation.Around;
import edu.nf.aop.JoinPoint;

public class LogAspect {

    @Around
    public Object test(JoinPoint joinPoint) throws Throwable {
        System.out.println("log1 before...");
        Object returnVal = joinPoint.proceed();
        System.out.println("log1 after...");
        return returnVal;
    }

    @Around
    public Object test2(JoinPoint joinPoint) throws Throwable {
        System.out.println("log2 before...");
        Object returnVal = joinPoint.proceed();
        System.out.println("log2 after...");
        return returnVal;
    }
}
